C (274/301)

From:Andrew Markwell
Date:17 Aug 99 at 22:27:37
Subject:Re: Structure Arrays

From: Andrew Markwell <andrewmarkwell@ukonline.co.uk>

On Allan Odgaard 17-Aug-99 did write:
>
> On 17-Aug-99, andrewmarkwell@ukonline.co.uk wrote:
>
>> delete ptr[];
>
> I'm almost certain that it's actually
>
> delete [] ptr;

Oops.. yep, that is right ;)

>> to do that. Some compilers require you to have the size in the subset
>> brackets though.
>
> Are you sure about this? Most compilers tag the memory with its size, if they
> cannot calculate it during deletion - most also tag it when they can :-(

As I understand it, you needed to specify the size in older compilers.

Andrew Markwell